default: all

DIRS =\
 src\
 main


all:
	@ \
	for i in ${DIRS}; \
	do \
	  (cd $$i && $(MAKE) $@) || exit 1; \
	done

clean:
	@ \
	for i in ${DIRS}; \
	do \
	  if [ -f $$i/Makefile ]; \
	  then \
	    (cd $$i && $(MAKE) $@) || exit 1; \
	  fi; \
	done
